package com.mao.service.adminmanage;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.mao.action.jsonvo.store.JsonVoStore;
import com.mao.action.jsonvo.store.JsonVoUser;
import com.mao.model.store.Store;
import com.mao.model.user.User;

@Transactional(rollbackFor=Exception.class,propagation=Propagation.REQUIRED)
public interface IAdminManageService {
	
	public List<JsonVoStore> getAllStore(String name);

	public Store getStoreById(long id);
	
	public Integer getAllStoreCount(String name);
	
	public Store saveOrUpdateStore(Store store);
	
	public List<JsonVoUser> getAllUser(String loginName);
	
	public Integer getAllUserCount(String loginName);
	
	public User saveOrUpdateUser(User user);
	
	public User getUserById(long id);
	
	public String valDelStore(long id);
	
	public List<JsonVoUser> getUserByStore(long storeid);
	
	public Integer getUserByStoreCount(long storeid);
}
